require('./index.css');
require('page/common/top-head-menu/index.js');
require('page/common/footer/index.js');
require('page/common/head-search/index.js');
require('page/common/bread-menu/index.js');
require('page/common/right-easy-menu/index.js');
require('page/common/inquery/index.js');
require('util/tree/jquery.treeview');
require('util/tree/jquery.treeview.css');

import validate from 'jquery-validation';
import _mm from 'util/mm.js';
import _tool from 'util/tool.js';
import _all from 'service/all-service';

const page = {
    init() {
        this.initTree();
    },
    initTree() {
        _all.getIndexAllType(res => {
            const page = require('./map.string');
            const html = _mm.renderHtml(page, {data: res.data});
            $('#folders').html(html);
        });
        setTimeout(function () {
            $("#browser").treeview();
        }, 100);
    }
};

module.export = page.init();